package com.yuyou.weixin.mapper;

import com.yuyou.weixin.entity.FnWxSrsActivity;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface FnWxSrsActivityMapper {
    int deleteByPrimaryKey(Long id);

    int insert(FnWxSrsActivity record);

    FnWxSrsActivity selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(FnWxSrsActivity record);

    FnWxSrsActivity selectByUserId(@Param(value = "userId") Long userId , @Param(value = "projectCode") String projectCode);

    FnWxSrsActivity selectByCode(@Param(value = "exclusiveCode") Integer exclusiveCode , @Param(value = "projectCode") String projectCode);

    Integer checkAssistance(@Param(value = "activityId") Long activityId , @Param(value = "projectCode") String projectCode);
}